package com.rd.student.jiaji.class4.suyan.zrrd.day13;

public class StringBuilderl {
    public static void main(String[] args) {
        String str = "zhang";
        StringBuilder stringBuilder =new StringBuilder(str);
        StringBuffer stringBuffer=new StringBuffer(str);
        stringBuffer.toString();
        stringBuilder.toString();
        StringBuffer s1= new StringBuffer(stringBuilder.toString());
        StringBuilder s2=new StringBuilder(stringBuffer.toString());


        String str10 = ",";
        //String str11 = "zhang" + "san" + str10 + "li" + "si" + str10 + "wan"+"wu";
       // System.out.println(str11);
        StringBuilder sstr=new StringBuilder();
        sstr.append("zhang");
        sstr.append("san");
        sstr.append(str10);
        sstr.append("li");
        sstr.append("si");
        sstr.append(str10);
        sstr.append("wang");
        sstr.append("wu");
        System.out.println(sstr);
        System.out.println(sstr.capacity());


    }
}
